package ai.people.netmon.warning;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 预警
 *
 * @author yuanqinglong
 * @date 2022/7/22 16:51
 */
@SpringBootApplication
@EnableFeignClients("ai.people.core.feign.api")
@MapperScan("ai.people.netmon.warning.mapper")
public class WarningApplication9020 {

    /**
     * 创建RestTemplate并注入Spring容器
     */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(WarningApplication9020.class, args);
    }


}
